package team.seekers.catering.food.entity.dto.add;

import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import team.seekers.catering.common.enums.FoodPackageTypeEnum;
import team.seekers.catering.food.entity.pojo.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

@Data
public class ComboAddDTO extends IngredientAnalyzeDTO {


    /**
     * 基本信息
     */
    @NotBlank(message = "套餐名称不能为空")
    @Size(max = 20, message = "套餐名称长度不能超过20")
    private String name;

    @NotBlank(message = "套餐描述不能为空")
    @Size(max = 255, message = "套餐描述长度不能超过255")
    private String description;

//    @NotBlank(message = "请上传套餐图片")
//    @Size(max = 1024, message = "套餐图片长度不能超过1024")
    private String picture;

    @NotNull(message = "套餐的单品组成不能为空")
    @ApiModelProperty(value = "套餐单品组成")
    private List<ContainFoodListDTO> content;

    @ApiModelProperty(value = "套餐的口味标签")
    @NotNull(message = "套餐的口味标签不能为空")
    private List<ContainLabelListDTO> label;

}
